package cac.fenjian.resource.mspartbasicbao.dao;

import cac.fenjian.resource.MsPart.dto.MsPartBasicDTO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MsPartBasicDao {

    //条件查询
    public MsPartBasicDTO searchByMsPartId(String msPartId);

    //分页查询
    public Page<MsPartBasicDTO> searchMsPartBasicByPage(@Param("bean") MsPartBasicDTO msPartBasicDTO, @Param("productCode") String productCode, @Param("orderBy") String orderBy, @Param("keyWords") String keyWords);

    //查询对象
    public List<MsPartBasicDTO> searchMsPartBasic(MsPartBasicDTO msPartBasicDTO);

    //新增对象
    public int insertMsPartBasicDTO(MsPartBasicDTO msPartBasicDTO);

    //批量新增
    public int insertBatchMsPartBasic(@Param("dtoList") List<MsPartBasicDTO> dtoList);

    //更新对象
    public int updateMsPartBasic(MsPartBasicDTO msPartBasicDTO);

    //批量更新
    public int updateMsPartBasicList(@Param("dtoList") List<MsPartBasicDTO> doList);

    //按主键删除
    public int deleteMsPartBasic(String ms_part_id);

}
